#include "MapLoader.h"
#include <QDebug>
#include <iostream>
int main(){
    Landscape land;
    int mapWidth, mapHeight, nbPlayers, initRes;

    MapLoader::loadMap("map.txt", &land, &mapWidth, &mapHeight, &nbPlayers, &initRes);

    for(int i = 0; i < mapWidth; i++){
        for(int j = 0; j < mapHeight; j++){
            std::cout << (char)land.cases[i].at(j);
        }
        std::cout << "\n";
    }

    return 0;
}
